Managing Code-block Numbering

The Code Expert editor lets you insert block numbers into your NC files. The following procedure describes how to change the default numbering behavior.

To set code-block numbering attributes:

  1. Load an NC file into Code Expert's editor.
  2. Select the NC Functions tab.

    The "NC Functions" tab in Code Expert.

  3. Click NC Configuration.

    The NC Configuration dialog box displays.

  4. Click Block Numbering.

    The "Block Numbering" tab in the "NC Configuration" dialog box.

  5. Set Starting number to the value at which numbering will begin.
  6. Set Maximum number to the largest allowable block number. If block numbers reach this maximum value, they resume at the starting number.
  7. Set Increment to the value that Code Expert will add to the last block number to get the next.
  8. Set Prefix with to the character to use as a number prefix.
  9. To number blank lines, select Number empty lines.
  10. To number comment lines, select Number commented lines.
  11. Click OK to finalize your settings.
  12. If the currently loaded file already contains block numbers, click Remove Block Numbers.
  13. Click Insert Block Numbers. Code Expert numbers the code as specified in the Insert Block Numbers dialog box.

Learn more